<template>
  <div class="phonePicture">
    <div class="item" v-for="item in props.materialsInfo">
      <el-image class="send_image" :src="item.imgUrl" alt="" fit="cover">
        <template #error>
          <el-image class="send_image" src="/static/file/pic.png" alt=""></el-image>
        </template>
      </el-image>
    </div>
  </div>
</template>

<script setup lang='ts'>
import {reactive, ref, computed, watch, onMounted, defineProps} from "vue"
import {useRouter, useRoute} from "vue-router"
import MessageModel from './MessageModel.vue'

const props = defineProps(['materialsInfo'])

onMounted(()=>{
  console.log('props.materialsInfo - -   ', props.materialsInfo)

})

</script>

<style lang="scss" scoped>
.phonePicture {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  // grid-template-rows: repeat(60px);
  // grid-auto-rows: 60px;
  justify-content: space-between;
  .item{
    height: 60px;
    margin-bottom: 5px;
    .send_image {
      width: 100%;
      height: 60px;
    }
  }
}
</style>
